﻿<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/bb214/wipTrend" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="wipTrend" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label>工单：</label>
            <g:select name="woid" from="${woList}" data-toggle="selectpicker" optionKey="WO_ID" optionValue="WO_ID" value="${woid}" noSelection="['':'ALL']" />&nbsp;
            <label>产品名称：</label>
            <g:select name="productid" from="${productList}" data-toggle="selectpicker" optionKey="PRODUCTID" optionValue="PRODUCTDESC" value="${productid}" noSelection="['':'ALL']" />&nbsp;
            <label>站点：</label>
            <g:select name="stepid" from="${stepList}" data-toggle="selectpicker" optionKey="Step_Id" optionValue="Step_DESC" value="${stepid}" noSelection="['':'ALL']" />&nbsp;

            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/bb214/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;

        </div>
    </form>
</div>

<div class="panel-heading">
    <h3 class="panel-title"><i class="fa fa-line-chart fa-fw"></i>良率图表</h3>
</div>
<div class="panel-body">
    <div style="mini-width:400px;height:450px;" id="cellGlassOutputDiv"></div>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${wipTrendList.size() > 0}">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th width="110">批次</th>
                %{--<th width="110">三联单号</th>--}%
                <th width="110">工单号</th>
                %{--<th width="110">线体</th>--}%
                <th width="110">产品名称</th>
                <th width="110">产品描述</th>
                <th width="110">站点ID</th>
                <th width="110">站点名称</th>
                <th width="110">数量</th>
                <th width="110">hold人员</th>
                <th width="110">hold代码</th>
                <th width="110">hold原因</th>
                <th width="110">产品投线时间</th>
                <th width="110">计划完成时间</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${wipTrendList}" status="i" var="wipTrendInstance">
                <tr>
                    <td>${wipTrendInstance.LOT_ID}</td>
                    %{--<td>${wipTrendInstance.LOT_ALIAS}</td>--}%
                    <td>${wipTrendInstance.WO_ID}</td>
                    %{--<td>${wipTrendInstance.LINE_ID}</td>--}%
                    <td>${wipTrendInstance.PART_NAME}</td>
                    <td>${wipTrendInstance.PART_DESC}</td>
                    <td>${wipTrendInstance.STEP_NAME}</td>
                    <td>${wipTrendInstance.STEP_DESC}</td>
                    <td>${wipTrendInstance.MAIN_QTY}</td>
                    <td>${wipTrendInstance.HOLD_USER_NAME}</td>
                    <td>${wipTrendInstance.HOLD_CODE}</td>
                    <td>${wipTrendInstance.HOLD_REASON}</td>
                    <td>${wipTrendInstance.START_TIME}</td>
                    <td>${wipTrendInstance.PLAN_END_DATE}</td>
                </tr>
            </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel" />
    </g:else>
</div>
<g:render template="../template/pagination" />
